getTextExactWidth

Calculate an exact text width for a given text properties and text.

getTextExactWidth(textProperties: IFontStyle, text: string): number

Arguments

textProperties: IFontStyle

  • The text properties for which to calculate the width.

text: string

  • The text for which to calculate the width.

Returns

  • Exact width of the given text.